<!DOCTYPE html>
<html lang="zh-CN" style="height:100%;">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>城内网--智慧校园</title>
    <link rel="Shortcut Icon" href="./images/logo.png" />
    <meta name="description" content="本网是针对学生的生活平台，包括学习、考试、交友、交流、商城">
    <meta name="keywords" content="城内,城内网,智慧大学,智慧校园,在线教学,考勤系统,毕业设计">
    <!--  <link href="{$Think.const.CSS_URL}bootstrap.min.css" rel="stylesheet"> -->
    <link href="{$Think.const.CSS_URL}common.css" rel="stylesheet">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <!-- <script src="{$Think.const.JS_URL}bootstrap.min.js"></script> -->
    <script src="{$Think.const.JS_URL}jquery-1.12.3.min.js"></script>
    <script src="/layui/layui.js" charset="utf-8"></script>
    <script src="{$Think.const.JS_URL}common.js"></script>
        <link href="{$Think.const.CSS_URL}common.css" rel="stylesheet" />
    <script>
        // opencookie();
        //退出
        function logout() {
            $.ajax({
                type: "get",
                url: "{:url('index/my/logout')}",
                dataType: "text",
                data: {},
                success: function (data) {
                    parent.location.href = "{:url('index/test/index')}"
                }
            });
        }
    </script>

    <script>
        layui.use('element', function () {
            var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

            //监听导航点击
            element.on('nav(demo)', function (elem) {
                //console.log(elem)
                layer.msg(elem.text());
            });
        });
    </script>

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--[if lte IE 9]>
     <script src="{$Think.const.JS_URL}respond.js"></script>
     <script src="{$Think.const.JS_URL}html5shiv.js"></script>
    <![endif]-->

    <!--[if lt IE 8]>
 <script>
    alert("IE浏览器版本过低，请下载并使用官方提供的google浏览器");
	window.location.href="http://www.chengneiwang.com/test/static/chrome_xp_installer.rar";
 </script>
 <![endif]-->
    <style>
        html,
        body {
            height: 100%;
            ;
        }
    </style>


</head>

<body>

    <!-- 顶部菜单 -->
    <ul class="layui-nav">
        <li class="layui-nav-item">
            <a href="{:url('index/test/index')}"><span style="font-size:1.5em;">考试系统</span></a>
        </li>

        <li class="layui-nav-item">
            <a href="#">【<span id="title000">广东工业大学华立学院</span>】</a>
        </li>

        <li class="layui-nav-item" style="margin-left: 200px;">
            <a href="{:url('index/test/index')}">首页</a>
        </li>


        <!-- <li class="layui-nav-item">
    <a href="#">教室库</a>
  </li> -->
        {if condition="session('userclass') eq 2 "}
        <li class="layui-nav-item">
            <a href="{:url('test/tasklist')}">考试任务</a>
        </li>
        <li class="layui-nav-item">
            <a href="{:url('test/courselist')}">考试课程审核</a>
        </li>
        <li class="layui-nav-item">
            <a href="{:url('test/resultlist')}">排监考</a>
        </li>

        <li class="layui-nav-item">
            <a href="{:url('test/changeresultlist')}" >调监考审核</a>
        </li>
        {/if}

        {if condition="session('userclass') eq 1 "}
        <li class="layui-nav-item">
            <a href="{:url('test/courselist')}">上报考试课程</a>
        </li>
        <li class="layui-nav-item">
            <a href="{:url('test/teacherlist')}" >监考老师管理</a>
        </li>
        {/if}

        {if condition="session('userclass') eq 3 or session('userclass') eq 4 "}
        <li class="layui-nav-item">
            <a href="{:url('test/resultlist')}" id="noOperate">查看考试安排</a>
        </li>
        {/if}

        {if condition="session('userclass') eq 3"}
         <li class="layui-nav-item">
            <a href="{:url('test/changeresultlist')}" id="isTeacher" name="isTeacher" >查看调监考申请</a>
        </li>
        {/if}

        {if condition="session('userclass') eq 5"}
        <li class="layui-nav-item">
            <a href="{:url('test/tasklist')}">考试任务</a>
        </li>
        <li class="layui-nav-item">
            <a href="{:url('test/courselist')}">考试课程管理</a>
        </li>
        <li class="layui-nav-item">
            <a href="{:url('test/resultlist')}">排监考</a>
        </li>

        <li class="layui-nav-item">
            <a href="{:url('test/changeresultlist')}" >调监考审核</a>
        </li>

         <li class="layui-nav-item">
            <a href="#"><i class="layui-icon layui-icon-app"></i> 管理中心</a>
            <dl class="layui-nav-child">
                <dd><a href="{:url('test/changeresultlist')}">调监考管理</a></dd>
                <dd><a href="{:url('test/teacherlist')}">参考老师名单</a></dd>
            </dl>
        </li>

        {/if}







        {if condition="session('uid') eq null "}
        <li class="layui-nav-item" style="float:right;"><a href="#">注册</a></li>
        <li class="layui-nav-item" style="float:right;"><a href="{:url('my/login')}">登录</a></li>
        {else /}
        <li class="layui-nav-item" style="float:right;margin-right:50px;">
            <a href="#" onclick="logout()">退出</a>
        </li>
        <li class="layui-nav-item" style="float:right;">
            <a href="#"><i class="layui-icon layui-icon-friends"></i>
                {switch name=session('userclass')}
                {case value="1" break 1}{php}echo session('truename'){/php}学院{/case}
                {case value="2" break 1}{php}echo session('truename'){/php}教务处{/case}
                {case value="3" break 1}{php}echo session('truename'){/php}老师{/case}
                {case value="4"}{php}echo session('truename'){/php}同学{/case}
                {case value="5"}{php}echo session('truename'){/php}admin{/case}
                {/switch}
            </a>
        </li>
        {/if}
    </ul>

    <div class="layui-container-fluid">
        <div class="layui-row">
            <!-- 左边  -->
            <div class="layui-col-xs11" style="background-color: red;">

            </div>

            <!-- 右边 -->
            <div class="layui-col-xs1" style="background-color: blue;">

            </div>
        </div>


    </div>
    <script>
        //用选择的学校名替换“城内网”
        // nowselectedschoolid = getCookie('nowselectedschoolid')
        // nowselectedschoolname = getCookie('nowselectedschoolname')
        // if (nowselectedschoolid == 0 || nowselectedschoolid == undefined || nowselectedschoolid == null) {
        //     $('#title000').text("请选择学校");
        // } else {

        //     $('#title000').text(nowselectedschoolname);
        // }
    </script>